import request from '@/utils/request'

//查询所有品牌
export function getAllBrands() {
  return request ({
    url: '/api/brand/listAll',
    method: 'get'
  })
}

//查询所有品牌
export function getProductsByBrandId(brandId) {
  return request ({
    url: `/api/brand/getProductByBrandId/${brandId}`,
    method: 'get'
  })
}